package com.smartdot.bluetoothidcarddemo;

import android.app.Application;
import android.content.Context;

public class App extends Application {
    private static App mInstance;
    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;
        mContext = getApplicationContext();
//        AppFrontBackHelper appFrontBackHelper = new AppFrontBackHelper();
//        appFrontBackHelper.register(SoleMountainApp.this, new AppFrontBackHelper.OnAppStatusListener() {
//            @Override
//            public void onFront() {
//                UiUtils.showToastNormal("前台");
//            }
//
//            @Override
//            public void onBack() {
//                UiUtils.showToastNormal(UiUtils.getString(R.string.app_name)+"已进入后台运行");
//            }
//        });
    }



    public static Context getContextObject() {
        return mContext;
    }

    public static App getInstance() {
        return mInstance;
    }

}
